﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/HRManagerUI/HrManager.Master"
    AutoEventWireup="true" CodeBehind="SentMessage.aspx.cs" Inherits="HRM.UI.HRManagerUI.Profile.SentMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContentBody" runat="server">
    <link href="../../../Styles/LeaveForm/LeaveCss.css" rel="stylesheet" type="text/css" />
    <link href="../../../Styles/Message/DeleteMsgCsscss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" language="javascript">
        function CheckField() {
            if (document.getElementById("<%=txtReciverCode.ClientID%>").value == "") {
                document.getElementById("<%=msgLbl.ClientID%>").textContent = "Please Enter Employee Code!";
                document.getElementById("<%=msgLbl.ClientID%>").style.color = "red";
                document.getElementById("<%=txtReciverCode.ClientID%>").focus();
                return false;
            }
            if (document.getElementById("<%=txtSubject.ClientID%>").Value == "") {
                document.getElementById("<%=msgLbl.ClientID%>").textContent = "Please write message subject!";
                document.getElementById("<%=msgLbl.ClientID%>").style.color = "red";
                document.getElementById("<%=txtSubject.ClientID%>").focus();
                return false;
            }
            if (document.getElementById("<%=txtMessage.ClientID%>").Value == "") {
                document.getElementById("<%=msgLbl.ClientID%>").textContent = "Please write something in Message box!";
                document.getElementById("<%=msgLbl.ClientID%>").style.color = "red";
                document.getElementById("<%=txtMessage.ClientID%>").focus();
                return false;
            }
            return true;
        }
    </script>
    <div>
        <a href="../../../UI/HRManagerUI/Profile/MessageUI.aspx">
            <input type="button" id="btnInbox" runat="server" class="btnInbox" />
        </a>
    </div>
    <div align="center">
        <table>
            <tr>
                <td>
                    <img src="../../../icons/ok_sign.png" id="okImage" runat="server"/>
                </td>
                <td>
                    <asp:Label runat="server" ID="msgLbl"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    <fieldset>
        <legend></legend>
    <div id="sentMsgDiv">
        <table id="mesgMainTB"  runat="server">
            <tr>
                <td class="sentMsgTd">
                    To
                </td>
                <td>
                    <input type="text" runat="server" id="txtReciverCode" class="textboxinput" /><span
                        class="estaricStar">*</span>Ex:SSEL-1003
                </td>
            </tr>
            <tr>
                <td class="sentMsgTd">
                    Subject
                </td>
                <td>
                    <input type="text" runat="server" id="txtSubject" class="inputTextareat" /><span
                        class="estaricStar">*</span>
                </td>
            </tr>
            <tr>
                <td class="sentMsgTd">
                    Message
                </td>
                <td>
                    <textarea cols="16" rows="3" id="txtMessage" runat="server" class="inputTextareat"></textarea><span
                        class="estaricStar">*</span>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" runat="server" id="btnLeave" value="Sent Message" class="btnCss"
                        onserverclick="BtnSentMessage" onclick="return CheckField()" />
                </td>
            </tr>
        </table>
    </div>
    </fieldset>
</asp:Content>
